package net.atomarrow.bs.interceptor;

import net.atomarrow.annotation.Priority;
import net.atomarrow.aop.ControllerInterceptor;
import net.atomarrow.action.ActionInvocation;
import net.atomarrow.render.Render;
@Priority(value=1)
public class MyInterceptor implements ControllerInterceptor{


    @Override
    public Render intercept(ActionInvocation actionInvocation) throws Exception {
        System.out.println("1 before");
        Render render = actionInvocation.invoke();
        System.out.println("1 after..");
        return render;
    }

}
